package Connexion;

import java.awt.Color;
import java.awt.Dimension;

import java.awt.Rectangle;

import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

public class Connexion
  extends JFrame
{
  private JPanel jPanel1 = new JPanel();
  private JLabel jLabel1 = new JLabel();
  private JTextField jTextField1 = new JTextField();
  private JTextField jTextField2 = new JTextField();
  private JLabel jLabel2 = new JLabel();
  private JButton jButton1 = new JButton();

  public Connexion()
  {
    try
    {
      jbInit();
    }
    catch (Exception e)
    {
      e.printStackTrace();
    }
  }

  private void jbInit()
    throws Exception
  {
    this.getContentPane().setLayout( null );
    this.setSize( new Dimension(400, 300) );
    this.setTitle( "Connexion" );
    jPanel1.setBounds(new Rectangle(65, 40, 265, 175));
    jPanel1.setLayout(null);
    jPanel1.setBorder(BorderFactory.createLineBorder(Color.black, 6));
    jLabel1.setText("MATRICULE");
    jLabel1.setBounds(new Rectangle(30, 35, 80, 25));
    jTextField1.setBounds(new Rectangle(140, 35, 95, 20));
    jTextField2.setBounds(new Rectangle(140, 95, 95, 20));
    jLabel2.setText("PASSWORD");
    jLabel2.setBounds(new Rectangle(30, 95, 80, 25));
    jButton1.setText("Connexion");
    jButton1.setBounds(new Rectangle(70, 135, 115, 20));
    jPanel1.add(jButton1, null);
    jPanel1.add(jLabel2, null);
    jPanel1.add(jTextField2, null);
    jPanel1.add(jTextField1, null);
    jPanel1.add(jLabel1, null);
    this.getContentPane().add(jPanel1, null);
  }
}
